import { ref } from "vue";
import { getHomeApi } from "../../../api/home";

export const useHomeData = function () {
  const dataRef = ref({});
  getHomeApi().then((data) => (dataRef.value = data));
  return {
    data: dataRef,
  };
};
